﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="WScSimpleAddition._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h1>Enter two numbers to add them!</h1>
    <p>&nbsp;</p>
    <table>
        <tr>
            <td>Enter first number :</td>
            <td>
                <asp:TextBox ID="tb_FirstNumber" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tb_FirstNumber" CssClass="error" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tb_FirstNumber" CssClass="validation-errors" ErrorMessage="Valid Numbers &gt;=0" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td ><strong>+</strong></td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Enter second number :</td>
            <td>
                <asp:TextBox ID="tb_SecondNumber" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tb_SecondNumber" CssClass="error" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tb_SecondNumber" CssClass="validation-errors" ErrorMessage="Valid Numbers &gt;=0" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <asp:Button ID="btn_Addition" runat="server" Text="Add" />
            </td>
            <td></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>
                <span class="result">Result :</span></strong></td>
            <td>
                <asp:Label ID="lbl_Result" runat="server" CssClass="result-label"></asp:Label>
            </td>
            <td>&nbsp;</td>
        </tr>
    </table>
</asp:Content>

